package com.cpd.blog.dto.User;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;

/**
 * @Author: Copydown
 * @Date: 2022/05/06/20:23
 */
@Getter
@Setter
@ApiModel(description = "用户注册请求")
public class RegisterReq {

    @NotBlank(message = "账号不能为空！")
    @ApiModelProperty("用户账号")
    private String account;

    @NotBlank(message = "密码不能为空！")
    @ApiModelProperty("用户密码")
    private String password;

    @NotBlank(message = "邮箱不能为空！")
    @ApiModelProperty("用户邮箱")
    @Email(message = "邮箱格式有误")
    private String email;
}
